<?php $atr=array(
					"name"=>"labStaff",
					"onsubmit"=>"return checkLabStaff()"
				  ); 
	echo form_open('labStaff/edit1',$atr); ?> 
  
<?php $bar="LabStaff List";?>
<table id="box-table-a" cellspacing="1" align="right" width="900px">
	<tr>
		<td colspan=7 align=right class=bar><?php echo $bar;?></td>
	</tr>
	<tr>
			<th>LabStaff_ID</th>
   			<th>Staff_ID</th>
   			<th>Lab_ID</th>
   			<th>Worklevel</th>
   			<th>BasicSalary</th>   			 
   			<th>Action</th> 
	</tr>
	<tr>
		<td><input type="text" name ="LabStaff_ID" class="work" readonly="readonly" value=<?php echo $result->LabStaff_ID; ?> size="15"></td>
		<td><?php echo form_dropdown('Staff_ID', $staff,$result->Staff_ID );?></td>
		<td><?php echo form_dropdown('Lab_ID', $lab,$result->Lab_ID );?></td>    
   		<td><input type= "text" name ="Worklevel" class="work" value=<?php echo $result->Worklevel; ?> size="15"></td>
   		<td><input type= "text" name ="BasicSalary" value=<?php echo $result->BasicSalary; ?> size="15" onkeyup="this.value=add_commas(this.value);"></td>		
   		 <td align="center"><input type="submit" id="submit" value="edit"/> </td>
	</tr>
</table>
